package edu.yuhf.domain;

import com.yuhf.dbutils.iface.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class UserMapper implements RowMapper<User> {
    @Override
    public User handler(ResultSet rs) throws SQLException {
        return new User(rs.getInt(1), rs.getString(2)
                , rs.getString(3), rs.getString(4));
    }
}
